package com.dark.base;

import lombok.Data;

/**
 * ClassName: FlowerFallingException
 * Description:FlowerFallingException
 *
 * @author chengluchao
 * @date: 2022/8/13 3:54 PM
 * @since 1.4.8
 */
@Data
public class FlowerFallingException extends RuntimeException {
    private int code;
    private String message;

    public FlowerFallingException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public FlowerFallingException(String message) {
        super(message);
        this.message = message;
    }

    public FlowerFallingException(FlowerFallingErrorCodeEnmu engineErrorCodeEnmu) {
        super(engineErrorCodeEnmu.getMessage());
        this.message = engineErrorCodeEnmu.getMessage();
        this.code = engineErrorCodeEnmu.getCode();
    }
}
